*** Settings ***
Suite Setup       Set Log Level    trace
Test Setup
Resource          ../../../Resources_Config.robot

*** Test Cases ***
管理员发布圈子-正常流程
    #参数准备
    ${url}    Set Variable    ${admin_add_circle}
    ${adminRole}    Set Variable    0
    ${isEssential}    Set Variable    0
    ${imgUrl}    Set Variable    https://one-app-dev-2-1256532032.cos.ap-chengdu.myqcloud.com/2af15111a2eb41fcb8f7e4bd5620a591.png
    ${text}    Random Eng    100
    ${title}    Rand Name    auto-circle
    ${topic}    Set Variable    ${81}
    ${type}    Set Variable    ${4}
    ${userId}    Set Variable    ${1}
    #请求体构造
    ${postInfoDict}    Create Dictionary    img=${imgUrl}    text=${text}
    ${postsInfoList}    Create List    ${postInfoDict}
    ${postdata}    Create Dictionary    adminRole=${adminRole}    isEssential=${isEssential}    postsInfo=${postsInfoList}    title=${title}    topic=${topic}
    ...    type=${type}    userId=${userId}
    #发布请求
    ${rsp}    Post Request Web    ${admin_add_circle}    ${postdata}
    #结果校验
